package cn.wdm.system.mapper;

import cn.wdm.system.domain.Role;
import cn.wdm.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author laozhang
 * @since 2022-06-21
 */
public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 删除关系表role-permission
     * @param id
     */
    void deleteRolePermissionByRoleId(Long id);

    /**
     * 删除关系表role-menu
     * @param id
     */
    void deleteRoleMenuByRoleId(Long id);

    /**
     * 保存关系表role-permission
     * @param role
     */
    void saveRolePermissionByIds(Role role);

    /**
     * 保存关系表role-menu
     * @param role
     */
    void saveRoleMenuByIds(Role role);
}
